<template>
    <h3>Child</h3>
    <button @click="clickEventHandle">子组件按钮</button>
</template>

<script>
export default {
    data() {
        return {
            msg: "Child数据!"
        }
    },
    methods: {
        clickEventHandle() {
            //自定义事件
            this.$emit("someEvent", this.msg)
        }
    }
}
</script>